package engine.network.auditorSide.abstractClasses;

import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;

import engine.network.hostSide.abstractClasses.HandlingThread;

public class Auditor extends HandlingThread{
	/* *********************************************************
	 * Attributes
	 * ********************************************************* */
	private boolean _running;
	/* *********************************************************
	 * Constructor(s)
	 * ********************************************************* */
	public Auditor(String host) 
				throws UnknownHostException, IOException {
		super(new Socket(host, 4462));
		this.start();
	}
	
	@Override
	public void run() {
		while (_running) {
			try {
				String msg = _in.readLine();
				//todo continuer ici
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}
}
